package com.h3c.nem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.h3c.nem.mapper.TbOfferArchieveMapper;
import com.h3c.nem.entity.TbOfferArchieve;
import com.h3c.nem.service.ITbOfferArchieveService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 专业技术成果记录实现类
 *
 * @author chenyifan
 * @since 2022-06-06 16:35:44
 */
@Service
public class TbOfferArchieveServiceImpl extends ServiceImpl<TbOfferArchieveMapper, TbOfferArchieve> implements ITbOfferArchieveService {

    @Override
    public List<TbOfferArchieve> getOfferArchieveByWorkerId(String workerId) {
        QueryWrapper<TbOfferArchieve> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(TbOfferArchieve::getWorkerId, workerId);
        return list(queryWrapper);
    }
}

